package com.example.mytests.config;

import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class MyConfig {

    @Bean
    @Qualifier
    public MyUser myUser2() {
        return new MyUser(1);
    }
    @Bean
    @Qualifier
    public MyUser asdfasefa() {
        return new MyUser(12);
    }

    @Bean
    public MyUser myUser1() {
        return new MyUser(2);
    }
}
